package com.teamtwoseven.todo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * This screen is displayed after a new user account is created.
 * 
 * @author teamtwoseven
 */
public class Successful extends Activity {

	private Button retToLogin;

	/**
	 * Called when the activity is first created.
	 * 
	 * @param savedInstanceState
	 * 			allows instance data to be stored
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.successful);
		retToLogin = (Button) findViewById(R.id.successful_bReturn);
		
		retToLogin.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				// End this Activity and Return to Login Screen
				finish();
			}
		});
	}
}